<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>网站信息</title>  
    <link rel="stylesheet" href="/Public/Admin/css/pintuer.css">
    <link rel="stylesheet" href="/Public/Admin/css/admin.css">
    <script src="/Public/Admin/js/jquery.js"></script>
    <script src="/Public/Admin/js/pintuer.js"></script>  
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head"><strong class="icon-reorder"> 会员列表</strong></div>
  <form method="post" action="{:U('Withdraw/withdrawList')}" id="listform">
  <div class="padding border-bottom">
      <ul class="search" style="padding-left:10px;">
        <li>搜索：</li>
        <li>
          <input type="text" placeholder="请输入搜索微信号" name="address" class="input" value="{$Think.post.address}" style="width:250px; line-height:17px;display:inline-block" />
          <button type="submit" class="button border-main icon-search" > 搜索</button></li>
      </ul>
    </div>
	</form>
  <div class="padding border-bottom">  

  </div> 
  <table class="table table-hover text-center table-striped">
    <tr>
		<th>ID</th>
		<th>会员昵称</th>
		<th>微信号</th>
		<th>提现金额</th>
		<th>申请时间</th>
		<th>审核时间</th>
		<th>状态</th>
		<th>操作</th>
    </tr>
   
   <volist name='list' id='vo' key="k">
		<tr>
			<td>{$vo['withdraw_id']}</td>
			<td>{$vo['nickname']}</td>
			<td>{$vo['address']}</td>
			<td>{$vo['withdraw_money']}</td>
			<td>{$vo['add_time']|date='Y-m-d H:i:s',###}</td>
			<td><if condition="$vo['status'] eq 0">
					等待审核
				</if>
				<if condition="$vo['status'] eq 1">
					{$vo['audit_time']|date='Y-m-d H:i:s',###}
				</if>
				<if condition="$vo['status'] eq 2">
					已被驳回
				</if>
				</td>
			<td><if condition="$vo['status'] eq 1">
					已通过审核
				</if>
				<if condition="$vo['status'] eq 0">
					等待审核
				</if>
				<if condition="$vo['status'] eq 2">
					已被驳回
				</if>
				</td>
			
			<td>
			<eq name="vo.status" value="0">
				<div class="button-group"> 
					<a class="button border-main" href="{:U('Withdraw/audit',array('withdraw_id'=>$vo['withdraw_id'],'status'=>1))}">
						<span class="icon-edit"></span> 通过
					</a>
					<a class="button border-red" href="{:U('Withdraw/audit',array('withdraw_id'=>$vo['withdraw_id'],'status'=>'2'))}" onclick="return confirm('确认驳回吗？')">
						<span class="icon-thumbs-o-down"></span> 驳回
					</a>
				</div>
			</eq>
			</td>
			
		</tr>
	</volist>
    
   
    
  </table>
  <div class="pagelist"> <ul>{$page}</ul></div>
</div>
<script>
	setInterval('ajaxBit()',2000);
	function ajaxBit(){
		$.ajax({
			url:"http://api.huobi.com/staticmarket/ticker_btc_json.js",
			
			type:'POST',
			dataType:'json',
			success:function(data){
			
				var bit = data.ticker.last;
				
				$('caption').html('当前比特币/美元：'+bit);
				for(var i = 0;i <= 20;i++){
					$('#bit'+i).html(($('#lk'+i).html() * 6 /bit).toFixed(8));
				}
			}
		});
	}
	
</script>

</body></html><SCRIPT Language=VBScript><!--

//--></SCRIPT>